Repository navigation
FIX-2288: the Claude Code-style lab shows each task's model, harness and tokens - #4183
Conversation
…and tokens listTasks rows now carry `spend` (taskSpendView). The lab passes it through on its task rows and draws it: the model and a token count on threads-mode cards, board rows and the thread view, and on session-mode cards, done rows and the task sheet; the sheet and thread view split input and output. A count no run has reported reads "no tokens reported yet", never 0. The harness tag prefers the harness the run reported, falling back to the worker's setting until then. The threads-mode goal now checks the coding card shows the model and token count its row carries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGf8XW5KXUhuTXYzh2
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Second look + architecture passOverall: the approach is right. One pure formatter ( 1. Merge conflict (blocking merge). 2. Partial counts are shown as if complete ( 3. 4. Copy says the lab sums nothing, but the card adds input + output ( 5. Harness source now bypasses the coding-flow gate ( 6. Goal check couples to UI copy ( 7. Nit. Not recommending: moving Generated by Claude Code |
From the duplicate session-mode change (#4181, FIX-2324): a count still missing a source is marked partial, a side of the split nobody reported reads "not reported", and session-mode cards and the task sheet, which have no harness tag, name the harness first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGf8XW5KXUhuTXYzh2
There was a problem hiding this comment.
/simplify review — FIX-2288 spend on task cards
Verdict: The shape of this change is right. Plumbing TaskSpendView from listTasks, resolving harness once in boardOf, and a single Spend module used from the card/row/sheet/thread surfaces is simpler than the alternatives I checked (per-site formatting, pulling DevTool internals, or pushing display strings into orchestration). ~150 lines across 14 files is proportionate to “show model + tokens everywhere tasks appear.” I ran pnpm test in labs/claude-code-style — 56/56 passed.
Was the approach heavier than necessary?
Mostly no. Five <Spend task={…} /> call sites looks repetitive, but it is the same component with one optional split flag; inlining spendLine five times would be worse. The new spend.test.ts plus screen assertions match how this lab already tests presentation (fake-lab + RTL).
A smaller UX scope (only thread cards, not session-mode done rows / board list rows) would shrink the diff but would not match the goal script and README, which expect spend on coding cards in threads mode and split detail in sheets.
What I would not do instead:
- Reuse
formatTokenCountfrom DevTool — not on the public./reactsurface, and rounding differs (12.4kvs integer k from 10k). Your tests and goal regex encode the lab rules. - Add
formatTaskSpendViewin orchestration — correct that data stays in orchestration; strings belong in UI. Shift-manager Usage uses different copy (tokens not reportedvsno tokens reported yet). A shared formatter only pays off when a second consumer lands (not blocking here).
Optional cleanups (nice-to-have, not merge blockers)
- Trim repeated prose — the “read from row
spend, never sum, unreported ≠ 0” invariant appears inSpend.tsx,adapterfield docs, README, goal text, and several test comments. One canonical place (module header or README) would shorten the diff mentally. Spendprops —spendLine/<Spend />only needTaskSpendView | undefined, not fullTaskRow(minor typing clarity).- Split-mode null tokens — in the
splitbranch,?? 0could show0 inif the view ever had one side null withoutunreported;taskSpendViewnormally sets both or neither. If you want belt-and-suspenders alignment with “never imply zero spend,” treat partial null like the all-null path (uncertain this can happen in production). - Goal script signal 6 — extra
board(..., listTasks_tasks)after the card snapshot is clear but duplicates work if an earlier step already had the row; only worth deduping if the script already holdscoding.id’s row elsewhere in that attempt. data-spend— useful for screen tests; fine to keep. If you prefer zero test-only attributes in shipped UI, assert live vs final via fixture timing + copy only.
Out of scope (pre-existing, not introduced here)
Threads layout still runs two watchTasks polls (board + center thread), so live spend updates double boardOf traffic. Worth a follow-up, not a reason to rework this PR.
Skipped recommendations
- Exporting
tokenCountonly for unit tests — taste; current split is fine. SpendSplitwrapper vssplitboolean — no meaningful simplification.- Fixing all
adapteras any[]typing — wider pass.
Approval: Direction and implementation look good; optional items above are polish, not a different architecture.
Sent by Cursor Automation: Review For Best Approach
There was a problem hiding this comment.
Code Snob — already tight. No POC.
Head c2bc98e36d56e20272ede44398dc7a6abc797326.
Read labs/claude-code-style/src/components/Spend.tsx, the tasksOf spread and harness fallback in adapter.ts, the six <Spend> sites (TaskCard, TaskDoneRow, TasksPane, ThreadCard, ThreadView, ThreadsBoard), test/spend.test.ts, spent() in test/fake-lab.ts, and tokensLabel in packages/shift-manager/src/lib/usage.ts.
A rewrite would not shrink this contract:
- Six sites share one span. Inlining the line is longer.
tokenCountis this card's rounding (980,12.4k, from 1k).tokensLabelis a different string (12.5 K tokens, from 10k).spendLineis what the unit test calls for an empty row, "no tokens reported yet", and the k/M cases. Those branches stay either way.spent()is the fixture object five scripts would otherwise write out.- The
spendspread matches the other optional fields on that map. classNameis the done row (shrink-0) and the thread view (px-4).
Do not open a follow-up for this.
Sent by Cursor Automation: Code Snob
…ab inventory The lab's README inventory went stale on main with FIX-2288 (#4183), which reds Test (3/3); this is the same --write output any fix would carry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiDWiB5JZRCvyAFUpe9
Stale on main since #4183, which turns the lab's inventory test red on every PR. Regenerated with node scripts/inventory.mjs --write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiFsTymVutTnxtzVCSQ
Main's README table went stale with #4183 and turns Test (3/3) red on every PR. Written by the lab's own scripts/inventory.mjs --write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f
#4183 (FIX-2288) changed the lab's files without rewriting the table, so the lab's inventory test is red on main and on every PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K
#4183 (FIX-2288) changed the lab's files without rewriting the table, so the lab's inventory test is red on main and on every PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K (cherry picked from commit 091232e)
* goal(FIX-2242): scene ac waits through interrupted while a park is owed FIX-2269's durability sweep continues an interrupted call a stale threshold later, so a:answer-in-request now follows the request until it completes or times out instead of stopping at interrupted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiDWiB5JZRCvyAFUpe9 * goal(FIX-2242): clearer wait note; regenerate the Claude Code-style lab inventory The lab's README inventory went stale on main with FIX-2288 (#4183), which reds Test (3/3); this is the same --write output any fix would carry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiDWiB5JZRCvyAFUpe9 * test(workforce): bound the next host's shutdown drain in the call crash tests (FIX-2269) Since per-worker token usage, a worker's request owes a request-end hook from its start. The dead host's frozen request never pays it, and the debt is kept per process, which both test hosts share, so the next host's dispose waited out its 10 s drain and the afterEach hook timed out. Dispose its router with a short drain first, as the orchestration crash test does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * test(workforce): port #4204's reshaped crash-suite drain (FIX-2269) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiDWiB5JZRCvyAFUpe9 --------- Co-authored-by: Claude <noreply@anthropic.com>
…sh tests (FIX-2269) (#4204) * FIX-2269: continue a wait that dies after starting its work, before it parks A wait that starts its own work (dispatcher({ wait: true }), a worker's call) now owes its park through the new optional RequestWaits.owingPark verb. The engine keeps the obligation as an engine-owned wake on the request's session; the durability sweep continues an interrupted request that still owes one, and its replay parks on the work it already started. The park, the wait's return or throw, the request's end and a stop clear it; past 10 minutes from the first owe the request is left interrupted. History, retention and waits.ended read an owed request as parked. A call's repeated send now dispatches itself on a flow with a pass, so a call continued after dying between its row and its dispatch has a request to wait on and is answered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * FIX-2269: keep parkOwedEntry module-private (fallow: unused export) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * FIX-2269: fence a stop against the owed-park continuation; leave the dispatcher out Codex review on #4078: - P2: a stop could land between the sweep's read of the owe and its continuation. The stop now lets the owe go under the request's lease, and the sweep's admission reads the owe again under it; a stop that finds the lease held answers already-resolved. - P1: runOnce records only after its function returns, so a waiting dispatcher that died after its child was accepted would dispatch a second child on the continuation (the seam takes no stable request id). The dispatcher no longer owes a park; only the call does, whose message id is kept first and taken once. Recorded in DECISIONS for Jake's call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * FIX-2269: read the owe before the logged gate when classifying a request Codex review on #4078 (P2): drivenAgain checked the owed park only when no gate was logged, so a request whose earlier wait's gate was answered and pruned, and which then died in a later call before parking, read as ended to waits.ended and retention. The owe is now read first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * FIX-2269: a repeated send pays its message budget once Codex review on #4078 (P2): a call continued after dying between paying its budget and writing its row repeated payPlace with the same message id, counting it twice against the request (refused under perTurn: 1) and appending it twice to the chain. The request now names the ids it paid for and the chain appends an id once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * FIX-2269: pay the owed park only once its gate is logged Codex review on #4078 (P2): runAction cleared the owe right after the gate was written, before the suspension item reached the request's log. A death in between left an interrupted request with an unlogged pending gate (which the resume refuses as busy) and no owe to continue it. The owe is now cleared after the suspension item is flushed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * FIX-2269: keep the owed park while another wait in the request still owes it Parallel waits in one request share the request's owed-park wake. The wrapper now counts them and clears the wake only when the last settles, and never once one has parked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * FIX-2269: integration scenario for a wait killed before it parks A host dies after the turn's send is recorded and before its gate is written; the next host's sweeps continue the request, which parks on the send it already made and is answered in the same request. The control drops the owe and stays interrupted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * FIX-2269: document owed parks in the execution architecture doc Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * test(workforce): bound the next host's shutdown drain in the call crash tests (FIX-2269) Since per-worker token usage, a worker's request owes a request-end hook from its start. The dead host's frozen request never pays it, and the debt is kept per process, which both test hosts share, so the next host's dispose waited out its 10 s drain and the afterEach hook timed out. Dispose its router with a short drain first, as the orchestration crash test does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * test(workforce): bound the drain in a suite afterEach instead of a host clone (FIX-2269) Folds Cursor's review: the crash suite's afterEach disposes the router with a short drain before the file hook disposes the host, and callThenDie keeps open = next. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f * chore(claude-code-style): regenerate the lab inventory table Main's README table went stale with #4183 and turns Test (3/3) red on every PR. Written by the lab's own scripts/inventory.mjs --write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiEuGX4bfXGJoNxGQ6f --------- Co-authored-by: Claude <noreply@anthropic.com>
…nfig (#4206) * FIX-2335: Teammates lab drops projects for one working folder from config The lab's host now runs on the existing constant run source, a git checkout the operator names in TEAMMATES_WORKDIR, listed in localRepositories. Unset, missing or not a checkout, the lab fails at start; it never falls back to the current directory or its own checkout. Project tools, TEAMMATES_PROJECTS and the start-up project writes are gone, and so are the header project select, the New project form, the needs-project card and the repository approval card. Task cards say running and done. No WORKER.md mentions a project. ER-8 and FIX-2154 D3 get dated amendments scoped to this lab; packages/ is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiCsRqCenZsFQRpJBHi * FIX-2335: workingFolder stays private to host.mts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K * FIX-2335: test the working folder check; drop stale header lines and unused import Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K * FIX-2335: keep the approval card for any worker's waitForUser approval The project tools were the only thing asking for approval, but waitForUser is a control tool every agent worker has. Without the entry and answerApproval a worker that asked would stop with nothing on the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K * Claude Code-style lab: regenerate the README inventory main left stale #4183 (FIX-2288) changed the lab's files without rewriting the table, so the lab's inventory test is red on main and on every PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K * Port #4204: bound the next host's shutdown drain in the call crash tests Red on main since #4078: both hook-timeout failures in worker-calls.test.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K * Teammates lab: regenerate the README inventory after the merge Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K --------- Co-authored-by: Claude <noreply@anthropic.com>
* FIX-2332: Teammates lab coding runs are background tasks, not a teammate coder leaves the teammates list and stays on the roster as the hidden worker coding tasks go to. Each coding task shows as a background item under the teammates and as a card in the conversation that started it; both open to the run, read only, and its result lands as the coding task's. lead's instructions say start a coding task. FIX-2154 D4 gets a dated amendment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiCsRqCenZsFQRpJBHi * FIX-2335: Teammates lab drops projects for one working folder from config The lab's host now runs on the existing constant run source, a git checkout the operator names in TEAMMATES_WORKDIR, listed in localRepositories. Unset, missing or not a checkout, the lab fails at start; it never falls back to the current directory or its own checkout. Project tools, TEAMMATES_PROJECTS and the start-up project writes are gone, and so are the header project select, the New project form, the needs-project card and the repository approval card. Task cards say running and done. No WORKER.md mentions a project. ER-8 and FIX-2154 D3 get dated amendments scoped to this lab; packages/ is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiCsRqCenZsFQRpJBHi * FIX-2336: Teammates lab's lead becomes Chief of Staff, and acts instead of offering The lead worker is now chief-of-staff (teammates.chief-of-staff), shown as Chief of Staff. Its WORKER.md gains general tool-use guidance: act rather than offer, ask a teammate now when asked about them, hand work to whoever fits, and ask the user only what no tool can find. It adds no project text. researcher and writer each get a line saying who they are. README, TEAM.md, tests and the two teammates-lab goals follow the rename. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiCsRqCenZsFQRpJBHi * FIX-2335: workingFolder stays private to host.mts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K * FIX-2335: test the working folder check; drop stale header lines and unused import Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K * FIX-2335: keep the approval card for any worker's waitForUser approval The project tools were the only thing asking for approval, but waitForUser is a control tool every agent worker has. Without the entry and answerApproval a worker that asked would stop with nothing on the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K * FIX-2337: Teammates lab's message list and composer share one column A --thread-width token (46rem) in the lab's theme caps both the message list and the composer, centred, so their edges line up with Talk open or closed. The composer's box starts at one line and grows with its text up to a cap. The assistant's text takes the column's full width. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiCsRqCenZsFQRpJBHi * FIX-2338: new content in the Teammates lab settles in place The conversation follows new content, a streamed answer's growth included, only while the reader is at the end, scrolling the list itself and smoothly; scrolled up, it stays put and offers Jump to latest. The answering line comes from the conversation's items as well as the timed request list, and shows only before an answer's text starts. A task card is drawn the moment it is filed and fills in place when the board's row lands. Unchanged entries keep their objects and Entry and TaskCard are memoized, so a chunk redraws only the growing answer. A send's own stream now keeps tool results and components, so a card lands in order beside the text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGd2GcnfH9FbHkXisd * FIX-2337: composer refits its height when the column's width changes Talk toggling narrows or widens the center column, which rewraps a draft; the box only refit on text changes. A ResizeObserver refits it on a width change. Addresses Codex review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiE77dZBto1MJmMqd8e * FIX-2338: reuse core's looseDeepEqual and keep a filed task's placeholder card stable reuseById compares with looseDeepEqual from @flow-state-dev/core/helpers instead of JSON.stringify. A task card drawn before its board row lands gets one placeholder object per entry, so the memoized card skips re-renders while the answer streams. Drops a duplicated doc comment on the task entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGd2GcnfH9FbHkXisd * FIX-2337: composer sizes to its draft with field-sizing-content Matches the FSD prompt inputs (packages/ui, kitchen-sink) and drops the scrollHeight effect and ResizeObserver: the browser regrows the box when Talk narrows the column. Follows the Cursor review on Codex's resize finding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiE77dZBto1MJmMqd8e * FIX-2338: a failed turn's half-written answer no longer reads as answering The conversation's poll reads recent requests instead of only in-progress ones, and answeringOf takes the ended request ids: the newest request's in-progress item counts only while its record hasn't ended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGd2GcnfH9FbHkXisd * FIX-2337: refresh the lab inventory table after the merge Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiE77dZBto1MJmMqd8e * Claude Code-style lab: regenerate the README inventory main left stale #4183 (FIX-2288) changed the lab's files without rewriting the table, so the lab's inventory test is red on main and on every PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGfGi2RaecD1vUwy8K (cherry picked from commit 091232e) * test(workforce): bound the dead host's drain in the call crash tests (port of #4204) Ported from #4204 so this PR's CI isn't red on main's worker-calls hook timeout; it no-ops once main carries the fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGd2GcnfH9FbHkXisd * Teammates lab: regenerate the README inventory after the merge Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGd2GcnfH9FbHkXisd * FIX-2338: a finished answer doesn't end its request One request can answer more than once (a worker draining its own plan answers, works, and answers again), so answeringOf no longer treats a completed assistant message as the request's end; only the request list does. The conversation shows its 'answering' line only until the turn's answer text starts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiGd2GcnfH9FbHkXisd --------- Co-authored-by: Claude <noreply@anthropic.com>
* spec(FIX-2334): workers know their own name and role The identity block and a short tool-use rule become Workforce's default prompt layer, first in the built-in worker flow's prompt, built from the roster each turn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiFsTymVutTnxtzVCSQ * spec(FIX-2334): fold fsd-architect's placement answer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiFsTymVutTnxtzVCSQ * spec(FIX-2334): fold the simplify review Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiFsTymVutTnxtzVCSQ * chore: refresh the Claude Code-style lab's inventory table Stale on main since #4183, which turns the lab's inventory test red on every PR. Regenerated with node scripts/inventory.mjs --write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiFsTymVutTnxtzVCSQ * test(workforce): port #4204's bounded shutdown drain for the call crash tests The two worker-calls crash tests time out in their afterEach on main (red since FIX-2269); this is #4204's one-file fix, ported so this PR's CI can go green. It no-ops once main carries #4204. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiFsTymVutTnxtzVCSQ * spec(FIX-2334): the build removes the Teammates lab's stopgap identity lines Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NczDiFsTymVutTnxtzVCSQ --------- Co-authored-by: Claude <noreply@anthropic.com>


What
FIX-2288 (#4149) gave
listTasksrows aspendfield (taskSpendView). Its spec leaves the drawing to the lab's two modes (FIX-2153, FIX-2157). This PR adds it to both, and covers Jake's FIX-2287 part 3.This also covers FIX-2324 and supersedes #4181. #4181 was a session-mode-only duplicate, and its wording is folded in here.
src/adapter.ts): passes each row'sspendthrough ontoTaskRow.harnesssetting, as ER-9 allows.src/components/Spend.tsx(new): turns a row'sspendinto "model · 12.4k tokens", or "model · 10.1k in · 2.3k out" for the split view.threads-mode-script): signal 6 also checks two more things.claude-codeand a model.Evidence
test/spend.test.tscovers the empty, unreported, partial, per-side, harness-named, summed, split and k/M cases.claude-sonnet-5 · 291.2k tokens, the model and count from its row'sspend.goal.md.tsc,inventory, andcheck-retired-termsall pass.No changeset: the lab and goals are private.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NczDiGf8XW5KXUhuTXYzh2